{% extends "base.html" %}

{% block title_block %}
	{{ block.super }}Main Page
{% endblock %}

{% block page_content_block %}
	<div class="page_name understyle">Main Page</div>
	<!---->
	{% if news.count %}
		{% for art in news %}
			<div class="undertext_block">
				<div class="yellow_block news_name">
					{{ art.current_lang_text.title }}
				</div>
				<div class="yellow_block date_block">{{ art.created|date:date_format }}</div>
				<br>
				{{ art.current_lang_text.short_text|safe }}
			</div>
		{% endfor %}
	{% else %}
		<div class="undertext_block">
			{# <div class="yellow_block news_name">Nothing</div> #}
			<div class="yellow_block date_block">{{ current_time|date:date_format }}</div>
			<p>Sorry...</p>
		</div>
	{% endif %}
	
	<!--
		<p>Hello, Metalheads!</p>
		<p>Welcome to the first multilingual social networks exclusively for metalheads and informal metal encyclopaedia! Here you can make your own <a href="/">metalpage</a>, find new or old metalfriends and know some interesting <a href="/">facts</a> about your favourite bands and musicians.</p>
		<p>You can help us make the site better. Just <a href="/">write us</a> what you want to see on our site.</p>
		<p>The project is needed for moderators, translators and article writers.</p>
	-->
	
	
{% endblock %}